FROM python:3.12-slim-bookworm

ENV tz=Asia/Shanghai

RUN apt-get update && \
    apt-get install -y gcc g++ make

WORKDIR /app
COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt

COPY . /app

ENV PYTHONPATH=/app

ENTRYPOINT ["python3", "main.py"]